#include <time.h>
#include <iostream>
int main()
{
    time_t tm = time(nullptr);
    struct tm *t = localtime(&tm);
    char a[32] = {0};
    strftime(a, sizeof(a) - 1, "%m-%d %T", t);
    printf("%s\n", a);
}